<?php

/**
 * @author christian
 * @copyright 2011
 */

//echo "registrar ....";
//echo getcwd();
//echo basename(getcwd());



$ruta=$_SERVER['DOCUMENT_ROOT']."/viventura"."/MDOperator";
$ruta2=$_SERVER['DOCUMENT_ROOT']."/viventura"."/MDTour";

include_once("$ruta/conf/CConfig.php");
include_once("$ruta/elements/head.tpl");
include_once("$ruta/MDOperatorGeneral/CTourTableDraw.php");
include_once("$ruta/star.php");
include_once("$ruta/view/CDrawMenuTour.php");
//include_once("$ruta/MDOperatorGeneral/CTourEditDraw.php");
include_once("$ruta2/MDTourGeneral/CTourEditDraw.php");
include_once("$ruta/MDOperatorGeneral/CDrawPageReg.php");


if (!isset($_GET['codigo'])) {$_GET['codigo'] = "NULL";} 
$idOpe=$_GET['codigo'];

if (!isset($_GET['default'])) {$_GET['default'] = "NULL"; }
$default=$_GET['default'];

$items=array("Nuevo Tour"=>"CSmallDefinePack.php","Nuevo paquete"=>"CTourEdit.php?codigo=159&default=2","Ver paquetes"=>"/viventura/MDOperator/","Otra"=>"g");

CDrawMenuTour::getInstance()->setMenu($items);
CDrawMenuTour::getInstance()->DrawDivAdBegin("content_area_user_title","1");echo "<h1>Destino Sur</h1>";
CDrawMenuTour::getInstance()->rigth_side_begin();//empieza lado derecho 



$action="../view/CRegistroOperador.php?codigo=$idOpe&update=1";$name="formulario_registro";$method="post";$NAME="Editar datos del operador $idOpe";
CTourEditDraw::getInstance()->DrawHead($action,$name,$method,$NAME);

////////////////////////////////Datos generales del tour//////////////////////////////////

//	idOpe	FirstConOpe	LastConOpe	MailOpe	PhoOpe	FaxOpe	CodPosOpe	WebSitOp	NamOpe	ClasOpe	CommOpe	DirOpe
$items = array("NamOpe"=>"Nombre del operador","FirstConOpe"=>"Nombre del contacto","LastConOpe"=>"Apellido del contacto");
$val_items = array(":required",":required",":required");
CTourEditDraw::getInstance()->DrawTextFillBox("",$items, "operador", "idOpe", $idOpe, $val_items);

$items1 = array("MailOpe"=>"Correo","PhoOpe"=>"Teléfono","FaxOpe"=>"Fax","CodPosOpe"=>"Código Postal","WebSitOp"=>"Sitio Web");
$val_items1 = array(":mail",":integer",":integer",":integer",":url");
CTourEditDraw::getInstance()->DrawTextFillBox("",$items1, "operador", "idOpe", $idOpe, $val_items1);

CTourEditDraw::getInstance()->DrawSubmmit("Actualizar");
///////////////////////////////fechas ///////////////////////////

echo "</div>";
CDrawPageReg::getInstance()->DrawFoot();
CDrawMenuTour::getInstance()->rigth_side_end();

CDrawPageReg::getInstance()->DrawButton("Ver default tours","MDTourGeneral/index.php?default=1");
   
CDrawMenuTour::getInstance()->DrawDivAdEnd();





?>